<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>异地贫困搬迁</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <link rel="stylesheet" href="../../../css/amazeui.css"/>
    <link rel="stylesheet" href="../../../css/im.css"/>
    <script src="../../../js/jquery-1.4.2.min.js"></script>
    <style type="text/css">


    </style>
</head>
<body>
<div class="am-tabs" id="doc-my-tabs">
    <ul class="am-tabs-nav am-nav am-nav-tabs am-nav-justify am-topbar-fixed-top">
        <li id="tabOne" class="am-active"><a>搬迁意愿</a></li>
        <li id="tabTwo"><a>搬迁成效</a></li>
    </ul>
    <div class="am-tabs-bd topPadding">
        <div id="contentOne" class="am-tab-panel am-active"><!--贫困村-->
            <br>
            <table class="am-table am-text-middle am-table-nobordered am-table-compact">
                <tbody>
                <tr>
                    <th>是否搬迁户</th>
                    <th>
                        <form>
                            <div class="btn-select" id="btn_select_1">
                                <span class="cur-select">请选择</span>
                                <select id="info1" onclick="OC_1(this.id)" onchange="OC_1(this.id)">
                                    <option>是</option>
                                    <option>否</option>
                                </select>
                            </div>
                        </form>
                    </th>
                </tr>
                <tr>
                    <th>搬迁类型</th>
                    <th>
                        <form>
                            <div class="btn-select" id="btn_select_2">
                                <span class="cur-select">请选择</span>
                                <select id="info2" onclick="OC_1(this.id)" onchange="OC_1(this.id)">
                                    <option>选项一</option>
                                    <option>选项二</option>
                                    <option>选项三</option>
                                    <option>选项四</option>
                                    <option>选项五</option>
                                </select>
                            </div>
                        </form>
                    </th>
                </tr>
                <tr>
                    <th>搬迁方式</th>
                    <th>
                        <form>
                            <div class="btn-select" id="btn_select_3">
                                <span class="cur-select">请选择</span>
                                <select id="info3" onclick="OC_1(this.id)" onchange="OC_1(this.id)">
                                    <option>选项一</option>
                                    <option>选项二</option>
                                    <option>选项三</option>
                                    <option>选项四</option>
                                    <option>选项五</option>
                                </select>
                            </div>
                        </form>
                    </th>
                </tr>
                <tr>
                    <th>是否列入当前规划</th>
                    <th>
                        <form>
                            <div class="btn-select" id="btn_select_4">
                                <span class="cur-select">请选择</span>
                                <select id="info4" onclick="OC_1(this.id)" onchange="OC_1(this.id)">
                                    <option>是</option>
                                    <option>否</option>
                                </select>
                            </div>
                        </form>
                    </th>
                </tr>
                <tr>
                    <th>安置方式</th>
                    <th>
                        <form>
                            <div class="btn-select" id="btn_select_5">
                                <span class="cur-select">请选择</span>
                                <select id="info5" onclick="OC_1(this.id)" onchange="OC_1(this.id)">
                                    <option>选项一</option>
                                    <option>选项二</option>
                                    <option>选项三</option>
                                    <option>选项四</option>
                                    <option>选项五</option>
                                </select>
                            </div>
                        </form>
                    </th>
                </tr>
                <tr>
                    <th>安置地点</th>
                    <th>
                        <form>
                            <div class="btn-select" id="btn_select_6">
                                <span class="cur-select">请选择</span>
                                <select id="info6" onclick="OC_1(this.id)" onchange="OC_1(this.id)">
                                    <option>选项一</option>
                                    <option>选项二</option>
                                    <option>选项三</option>
                                    <option>选项四</option>
                                    <option>选项五</option>
                                </select>
                            </div>
                        </form>
                    </th>
                </tr>

                <tr>
                    <th>搬迁可能存在的困难</th>
                    <th>
                        <form>
                            <div class="btn-select" id="btn_select_7">
                                <span class="cur-select">请选择</span>
                                <select id="info7" onclick="OC_1(this.id)" onchange="OC_1(this.id)">
                                    <option>选项一</option>
                                    <option>选项二</option>
                                    <option>选项三</option>
                                    <option>选项四</option>
                                    <option>选项五</option>
                                </select>
                            </div>
                        </form>
                    </th>
                </tr>

                </tbody>
            </table>

            <div align="center">
                <button type="button" class="am-btn am-btn-primary am-radius im-fp-bt-select">保存</button>
            </div>
            <br>
            <div align="center">
                <button type="button" class="am-btn am-btn-primary am-radius im-fp-bt-select" onclick="backBtn()">返回</button>
            </div>

        </div>


        <div id="contentTwo" class="am-tab-panel"><!--贫困户-->
            <br>
            <table class="am-table am-text-middle am-table-nobordered am-table-compact">
                <tbody>
                <tr>
                    <th>搬迁类型</th>
                    <th>
                        <form>
                            <div class="btn-select" id="btn_select_11">
                                <span class="cur-select">请选择</span>
                                <select id="info11" onclick="OC_1(this.id)" onchange="OC_1(this.id)">
                                    <option>选项一</option>
                                    <option>选项二</option>
                                    <option>选项三</option>
                                    <option>选项四</option>
                                    <option>选项五</option>
                                </select>
                            </div>
                        </form>
                    </th>
                </tr>
                <tr>
                    <th>建房投入</th>
                    <th>
                        <form>
                            <input type="text" style="width: 200px" class="am-form-field im-fp-input">
                        </form>
                    </th>
                </tr>
                <tr>
                    <th>基础设施和公共服务</th>
                    <th>
                        <form>
                            <input type="text" style="width: 200px" class="am-form-field im-fp-input">
                        </form>
                    </th>
                </tr>
                <tr>
                    <th>产业发展</th>
                    <th>
                        <form>
                            <input type="text" style="width: 200px" class="am-form-field im-fp-input">
                        </form>
                    </th>
                </tr>
                <tr>
                    <th>建房面积</th>
                    <th>
                        <form>
                            <input type="text" style="width: 200px" class="am-form-field im-fp-input">
                        </form>
                    </th>
                </tr>
                </tbody>
            </table>
            <div align="center">
                <button type="button" class="am-btn am-btn-primary am-radius im-fp-bt-select">保存</button>
            </div>
            <br>
            <div align="center">
                <button type="button" class="am-btn am-btn-primary am-radius im-fp-bt-select" onclick="backBtn()">返回</button>
            </div>
        </div>
    </div>
</div>

<script>
    //    导航栏
    $(function () {
        $('#doc-my-tabs');
    });
    $('#tabTwo').click(function () {
        $("#tabOne").removeClass("am-active");
        $("#contentOne").removeClass("am-active");
        $("#tabTwo").attr("class", "am-active");
        $("#contentTwo").addClass("am-active");
    });
    $('#tabOne').click(function () {
        $("#tabTwo").removeClass("am-active");
        $("#contentTwo").removeClass("am-active");
        $("#tabOne").attr("class", "am-active");
        $("#contentOne").addClass("am-active");
    });

    //返回按钮
    function backBtn() {
        window.location.href = "../../../FarmerInput.html";
    }


    //下拉栏js
    var $$ = function (id) {
        return document.getElementById(id);
    };

    function OC_1(i) {
        var btnSelect1;

        switch (i) {
            case 'info1':
                btnSelect1 = $$("btn_select_1");
                break;
            case 'info2':
                btnSelect1 = $$("btn_select_2");
                break;
            case 'info3':
                btnSelect1 = $$("btn_select_3");
                break;
            case 'info4':
                btnSelect1 = $$("btn_select_4");
                break;
            case 'info5':
                btnSelect1 = $$("btn_select_5");
                break;
            case 'info6':
                btnSelect1 = $$("btn_select_6");
                break;
            case 'info7':
                btnSelect1 = $$("btn_select_7");
                break;
            case 'info11':
                btnSelect1 = $$("btn_select_11");
                break;
            case 'info22':
                btnSelect1 = $$("btn_select_22");
                break;
            case 'info33':
                btnSelect1 = $$("btn_select_33");
                break;
            case 'info44':
                btnSelect1 = $$("btn_select_44");
                break;
            case 'info55':
                btnSelect1 = $$("btn_select_55");
                break;
            case 'info66':
                btnSelect1 = $$("btn_select_66");
                break;
            default:
                break;
        }
        var curSelect1 = btnSelect1.getElementsByTagName("span")[0];
        var chgSelect1 = $$(i);
        curSelect1.innerHTML = chgSelect1.value;
    }
</script>
</body>
</html>